package cate.common.table.activity.dungeonup;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "宝箱开启")
public class DUChestRow extends ERow {

    @NoteField(value = "消耗道具")
    public String consumeStr;
    @NoteField(value = "奖励")
    public String rewardStr;
    @NoteField(value = "颜色")
    public int colorId;
    @NoteField(value = "顺序")
    public int order;
    @NoteField(value = "活动配置ID")
    public int configID;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("宝箱ID");
        this.consumeStr = xrw.getString("消耗道具","");
        this.colorId = xrw.getInteger("颜色ID");
        this.rewardStr = xrw.getString("奖励", "");
        this.order = xrw.getInteger("顺序", 0);
        this.configID = xrw.getInteger("活动配置ID");
    }
}
